package com.zyw.concurrent.lock;

/**
 * @author zhangyw
 * @date 16/3/31 21:32 14:22
 */
public abstract class AbstractLockObserver implements Runnable {

    public abstract boolean tryLock(String key, long expire);

    public abstract void unLock(String key);

    public abstract void addLockListener(String key, LockListener redisLock);

    public abstract void removeLockListener(String key);
    
    @Override
    public void run() {

    }
}
